<template>
  <el-row type="flex" style="width: 100%">
    <!-- 左右布局 -->
    <el-col>{{ data.name }}</el-col>
    <!-- 右侧布局和操作 -->
    <el-col>
      <el-row type="flex" justify="end">
        {{ data.manager }}
        <el-dropdown>
          <span class="el-dropdown-link">
            操作<i class="el-icon-arrow-down el-icon--right" />
          </span>
          <el-dropdown-menu slot="dropdown">
            <slot></slot>
          </el-dropdown-menu>
        </el-dropdown>
      </el-row>
    </el-col>
  </el-row>
</template>

<script>
export default {
  name: 'TreeTools',
  components: { },
  props: {
    data: {
      type: Object,
      default: () => ({})
    }
  },
  data() {
    return {

    }
  },
  created() {},
  mounted() {},
  methods: {

  }
}
</script>

<style lang="scss" scoped>
  .el-dropdown-link {
    padding-left:10px ;
  }
</style>
